<template>
  <div>
    <van-nav-bar
      title="提交订单"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <van-card
      :num="goods.num"
      :price="goods.originprice"
      :title="goods.proname"
      :thumb="goods.img1"
      v-for="goods in confirmgood"
      :key="goods.cartid"
    />
  </div>
</template>

<script>
import { orderlist } from "../api/user";
export default {
  data() {
    return {
      confirmgood: [],
    };
  },
  created() {
    orderlist({ userid: localStorage.getItem("userid") }).then((res) => {
      console.log(res.data);
      this.confirmgood = res.data.data;
    });
  } ,
  methods: {
    onClickLeft(){
      this.$router.back()
    }
  },  
};
</script>

<style>
</style>